
set JAVA_HOME=C:\Program Files\Java\jdk-11.0.6


dotnet sonarscanner begin /k:"DockerCompose.Sample.Web" /d:sonar.host.url="http://sonarqube.joson.tk:9090"  /d:sonar.login="7e36421740a586225b0facd069301807356feb89"


@REM dotnet test Net.Core.SonarQube.UnitTests/Net.Core.SonarQube.UnitTests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude=\"[xunit.runner.*]*,[Net.Core.SonarQube.UnitTests]*\"
@REM dotnet dotnet-sonarscanner\SonarScanner.MSBuild.dll begin /k:Net.Core.JosonSonar /n:Net.Core.JosonSonar /v:1.0  /d:sonar.host.url="http://192.168.7.67:9090" /d:sonar.login="cef98e8910643ecf08d7d28a1e3e91776d542230" /d:sonar.cs.opencover.reportsPaths=Net.Core.SonarQube.UnitTests/coverage.opencover.xml /d:sonar.coverage.exclusions=[**UnitTests*.cs,coverage.opencover.xml]

dotnet build

@REM dotnet dotnet-sonarscanner\SonarScanner.MSBuild.dll end /d:sonar.login="7e36421740a586225b0facd069301807356feb89
dotnet sonarscanner end /d:sonar.login="7e36421740a586225b0facd069301807356feb89"

Pause